package com.jy.api.dao;

import com.jy.api.domain.CallService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by xiaohua on 2018/11/12.
 */
public interface CallServiceDao extends CrudRepository<CallService, Integer> {



    CallService findByStoreIdAndEmpId(String storeId,String empId);

    Page<CallService> findByStoreIdAndCallTimeLessThanEqualAndCallTimeGreaterThanEqualOrderByCallTimeDesc(String storeId, Date before,Date after, Pageable pageable);




}
